package czt.dm.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import czt.dm.entity.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
@DS("CZT-DB")
public interface CZTMapper {

    @Select("select * from STUDENT_CZT")
    List<Student> getStudents();

    @Insert("insert into CZT.STUDENT_CZT values (#{id},#{name},#{age},#{className},#{gender})")
    void insert(Student student);
}
